package com.ravi.exception;

import lombok.Data;
import lombok.EqualsAndHashCode;

@EqualsAndHashCode(callSuper = true)
@Data
public class CheckSystemException extends RuntimeException{
	private String msg;
	private int code = 5000;

	public CheckSystemException(String msg) {
		super(msg);
		this.msg = msg;
	}

	public CheckSystemException(String msg, int code) {
		super(msg);
		this.msg = msg;
		this.code = code;
	}

	public CheckSystemException(String msg, Throwable e) {
		super(e);
		this.msg = msg;
	}

	public CheckSystemException(String msg, int code, Throwable e) {
		super(e);
		this.msg = msg;
		this.code = code;
	}
}
